<div class="content-page">
    <div class="content">

        <div class="container-fluid">
            <!-- 页面上部抬头文字 -->
            <div class="row">
                <div class="col-12">
                    <div class="row">
                        <div class="col-12">
                            <div class="page-title-box justify-content-between d-flex align-items-md-center flex-md-row flex-column">
                                <h4 class="page-title"> 报文基础数据 </h4>
                                <ol class="breadcrumb m-0">
                                    <li class="breadcrumb-item"><a href="javascript: void(0);">PHM</a></li>
                                    <li class="breadcrumb-item"><a href="javascript: void(0);">Apps</a></li>
                                    <li class="breadcrumb-item active">报文基础数据</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 正文内容开始 -->
            <!-- 搜索栏开始 -->
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <form style="text-align:left;" action="<?php echo $urlPost; ?>" method="post">
                                关键词：
                                <input style="width: 300px;" type="text" size="8" name="KeyWord1"
                                       value="<?php echo $KeyWord1; ?>">
                                <input style="height: 25px;width: 60px;" type="submit" name="sub" value="搜索">
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 搜索栏结束 -->

            <!-- 表格栏开始 -->
            <div class="row">
                <div class="col-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="table-responsive">
                                <table class="table table-bordered table-striped mb-0">
                                    <thead>
                                    <tr>
                                        <th class="text-center" style="width: 70px;">序号</th>
                                        <th class="text-center" style="width: 170px;">日期</th>
                                        <th class="text-center" style="width: 80px;">机号</th>
                                        <th class="text-center" style="width: 100px;">机型</th>
                                        <th class="text-center" style="">报文</th>
                                        <th class="text-center" style="width: 100px;"> 操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <?php
                                    $m_NO = 1;
                                    foreach ($arr as $item) {
                                        echo '<tr>';
                                        echo '<td class="text-center">' . $m_NO . '</td>';
                                        echo '<td class="text-center">' . $item['LOCAL_TIMESTAMP'] . '</td>';
                                        echo '<td class="text-center">' . $item['ACNO'] . '</td>';
                                        echo '<td class="text-center">' . $item['ACTYPE'] . '</td>';
                                        echo '<td class="text-center">' . $item['RAW_MSG'] . '</td>';
                                        echo '<td style="text-align: center;">                    
                                                <a class="btn btn-success btn-sm ms-1" style="font-size: 14px;color: white;font-weight:bold;" href="javascript:" id="ID_MOD_' . $item['PKID'] . '' . '" >查看</a>           
                                                <script>
                                                    OpenLayerHTMLWindow("#ID_MOD_' . $item['PKID'] . '", "查看", "' . $urlMod . $item['PKID'] . '", "850px", "500px", 1)        
                                                </script>
                                             </td>';
                                        echo '</tr>';
                                        $m_NO = $m_NO + 1;
                                    } ?>
                                    <tr>
                                        <td colspan="9"><?php echo $txpages; ?></td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
            <!-- 表格栏结束 -->

            <!-- 正文内容结束 -->
        </div>

    </div>

</div>
<script>
    OpenLayerHTMLWindow('#ID_ADD', '增加', '<?php echo $urlAdd;?>', '850px', '500px', 1);
</script>
